package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * Created by Aniymx on 2018/12/16 20:27.
 */
public interface CmsPageRepository extends MongoRepository<CmsPage,String> {

   // CmsPage findByPageName(String pageName);
    CmsPage findBySiteId(String siteId);
    //根据页面名称查询
    CmsPage findByPageName(String pageName);

    CmsPage findBySiteIdAndPageNameAndPageWebPath(String siteId, String pageName, String pageWebPath);

}
